package com.dstz.form.util.tableexcel.column;

import java.util.List;

import com.dstz.base.core.util.AppUtil;
import com.dstz.bus.api.model.IBusinessColumn;

/**
 * <pre>
 * BusinessColumnExcellor工程
 * </pre>
 * 
 * @author aschs
 * @date 2019年9月9日
 * @owner 大世同舟
 */
public class BusinessColumnExcellorFactory {
	private BusinessColumnExcellorFactory() {

	}

	public static BusinessColumnExcellor get(IBusinessColumn column) {
		List<BusinessColumnExcellor> es = AppUtil.getImplInstanceArray(BusinessColumnExcellor.class);
		for (BusinessColumnExcellor e : es) {
			if (e.getCtrlType().equalsWithKey(column.getCtrl().getType())) {
				return e;
			}
		}
		return null;
	}

}
